![]() |
SetPalette |
||||
Header: | Palettes.h | Carbon status: | Supported | |
Associates a palette with a window.
void SetPalette ( WindowRef dstWindow, PaletteHandle srcPalette, Boolean cUpdates );
A pointer to the window to which you want to assign a new palette.
A handle to the palette you want to assign.
A Boolean value in which your application specifies whether the window is to receive updates as a result of changes to the color environment. Specify TRUE if you want the window to be updated, even if the window is not the frontmost window. When a window is the frontmost window, changes to its palette cause it to get an update event regardless of how the cUpdates parameter is set.
You can use the NSetPalette function, which does the same thing as SetPalette, when you need greater flexibility in setting criteria for updates. The nCUpdates parameter for the NSetPalette function includes the option of turning off updates when the window is the frontmost window.
Use the NSetPalette function to associate a palette with a window but with additional options as to when an update event is triggered by changes to the color environment.
Use the GetNewPalette function or the NewPalette function to create a new palette. To dispose of a palette, use the DisposePalette function.
Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)